﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Themes/MasterPage.master" AutoEventWireup="true"
    CodeFile="Home.aspx.cs" Inherits="Themes_Home" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        body
        {
            font: normal 11px auto "Trebuchet MS" , Verdana, Arial, Helvetica, sans-serif;
            color: #4f6b72;
            background: #E6EAE9;
        }
        
        a
        {
            color: #c75f3e;
        }
        
        table
        {
            width: 100%;
            padding: 0;
            margin: 0;
        }
        
        caption
        {
            padding: 0 0 5px 0;
            width: 100%;
            font: italic 11px "Trebuchet MS" , Verdana, Arial, Helvetica, sans-serif;
            text-align: right;
        }
        
        th
        {
            font: bold 11px "Trebuchet MS" , Verdana, Arial, Helvetica, sans-serif;
            color: #4f6b72;
            border-right: 1px solid #C1DAD7;
            border-bottom: 1px solid #C1DAD7;
            border-top: 1px solid #C1DAD7;
            letter-spacing: 2px;
            text-transform: uppercase;
            text-align: left;
            padding: 6px 6px 6px 12px;
            background: #CAE8EA no-repeat;
        }
        
        th.nobg
        {
            border-top: 0;
            border-left: 0;
            border-right: 1px solid #C1DAD7;
            background: none;
        }
        
        td
        {
            border-right: 1px solid #C1DAD7;
            border-bottom: 1px solid #C1DAD7;
            background: #fff;
            font-size: 11px;
            padding: 6px 0px 6px 0px;
            color: #4f6b72;
        }
        
        
        td.alt
        {
            background: #F5FAFA;
            color: #797268;
        }
        
        th.spec
        {
            border-left: 1px solid #C1DAD7;
            border-top: 0;
            background: #fff no-repeat;
            font: bold 10px "Trebuchet MS" , Verdana, Arial, Helvetica, sans-serif;
        }
        
        th.specalt
        {
            border-left: 1px solid #C1DAD7;
            border-top: 0;
            background: #f5fafa no-repeat;
            font: bold 10px "Trebuchet MS" , Verdana, Arial, Helvetica, sans-serif;
            color: #797268;
        }
        /*---------for IE 5.x bug*/
        html > body td
        {
            font-size: 11px;
        }
        body, td, th
        {
            font-family: 宋体, Arial;
            font-size: 12px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TabTitle" runat="Server">
    <%=Resources.Resource.CapacityOfEarlyWarning %>&nbsp;&nbsp; PlanVersion&nbsp;<IMC:VersionDropDown ID="dll_PlanVersion" runat="server">
    </IMC:VersionDropDown>
    CapacityVersion&nbsp;<IMC:PUVersionDropDownList ID="dll_PUVersion" runat="server">
    </IMC:PUVersionDropDownList>
    &nbsp;&nbsp;<asp:LinkButton ID="lbtn_Query" runat="server" Text="Query" OnClick="lbtn_Query_Click"></asp:LinkButton>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="Server">
    <div style="width: 100%;">
        <div class="GridDivCss">
            <br />
            <asp:Repeater ID="rep_Teeep" runat="server" OnItemDataBound="rep_Teeep_ItemDataBound">
                <HeaderTemplate>
                    <table>
                        <caption style="text-align: left">
                            表1：各BU ForcastTEEP情况（Each BU ForcastTEEP）</caption>
                        <tr>
                            <th scope="col">
                                BU
                            </th>
                            <th scope="col">
                                1
                            </th>
                            <th scope="col">
                                2
                            </th>
                            <th scope="col">
                                3
                            </th>
                            <th scope="col">
                                4
                            </th>
                            <th scope="col">
                                5
                            </th>
                            <th scope="col">
                                6
                            </th>
                            <th scope="col">
                                7
                            </th>
                            <th scope="col">
                                8
                            </th>
                            <th scope="col">
                                9
                            </th>
                            <th scope="col">
                                10
                            </th>
                            <th scope="col">
                                11
                            </th>
                            <th scope="col">
                                12
                            </th>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr id="teeprow" runat="server">
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).BU%>
                        </td>
                        <td class="row" runat="server" id="tdp1">
                            &nbsp;<%# Math.Round((double)((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).p1,1)+"%"%>
                        </td>
                        <td class="row" runat="server" id="tdp2">
                            &nbsp;<%# Math.Round((double)((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).p2,1)+"%"%>
                        </td>
                        <td class="row"  runat="server" id="tdp3">
                            &nbsp;<%# Math.Round((double)((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).p3,1)+"%"%>
                        </td>
                        <td class="row"  runat="server" id="tdp4">
                            &nbsp;<%# Math.Round((double)((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).p4,1)+"%"%>
                        </td>
                        <td class="row"  runat="server" id="tdp5">
                            &nbsp;<%# Math.Round((double)((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).p5,1)+"%"%>
                        </td>
                        <td class="row"  runat="server" id="tdp6">
                            &nbsp;<%# Math.Round((double)((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).p6,1)+"%"%>
                        </td>
                        <td class="row"  runat="server" id="tdp7">
                            &nbsp;<%# Math.Round((double)((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).p7,1)+"%"%>
                        </td>
                        <td class="row"  runat="server" id="tdp8">
                            &nbsp;<%# Math.Round((double)((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).p8,1)+"%"%>
                        </td>
                        <td class="row"  runat="server" id="tdp9">
                            &nbsp;<%# Math.Round((double)((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).p9,1)+"%"%>
                        </td>
                        <td class="row"  runat="server" id="tdp10">
                            &nbsp;<%# Math.Round((double)((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).p10,1)+"%"%>
                        </td>
                        <td class="row"  runat="server" id="tdp11">
                            &nbsp;<%# Math.Round((double)((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).p11,1)+"%"%>
                        </td>
                        <td class="row"  runat="server" id="tdp12">
                            &nbsp;<%# Math.Round((double)((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).p12,1)+"%"%>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
            <asp:Repeater ID="rep_Plan" runat="server" DataSourceID="PlanDataSource">
                <HeaderTemplate>
                    <table>
                        <caption style="text-align: left">
                            表2：各BU预计产量情况（Each BU Expected Production）</caption>
                        <tr>
                            <th scope="col">
                                BU
                            </th>
                            <th scope="col">
                                1
                            </th>
                            <th scope="col">
                                2
                            </th>
                            <th scope="col">
                                3
                            </th>
                            <th scope="col">
                                4
                            </th>
                            <th scope="col">
                                5
                            </th>
                            <th scope="col">
                                6
                            </th>
                            <th scope="col">
                                7
                            </th>
                            <th scope="col">
                                8
                            </th>
                            <th scope="col">
                                9
                            </th>
                            <th scope="col">
                                10
                            </th>
                            <th scope="col">
                                11
                            </th>
                            <th scope="col">
                                12
                            </th>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).BU%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m1%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m2%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m3%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m4%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m5%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m6%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m7%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m8%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m9%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m10%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m11%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m12%>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
            <asp:Repeater ID="rep_Plan_T" runat="server" DataSourceID="PlanDataSource_T">
                <HeaderTemplate>
                    <table>
                        <caption style="text-align: left">
                            表3：各BU预计产量情况(套)（Each BU Expected Production）</caption>
                        <tr>
                            <th scope="col">
                                BU
                            </th>
                            <th scope="col">
                                1
                            </th>
                            <th scope="col">
                                2
                            </th>
                            <th scope="col">
                                3
                            </th>
                            <th scope="col">
                                4
                            </th>
                            <th scope="col">
                                5
                            </th>
                            <th scope="col">
                                6
                            </th>
                            <th scope="col">
                                7
                            </th>
                            <th scope="col">
                                8
                            </th>
                            <th scope="col">
                                9
                            </th>
                            <th scope="col">
                                10
                            </th>
                            <th scope="col">
                                11
                            </th>
                            <th scope="col">
                                12
                            </th>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).BU%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m1%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m2%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m3%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m4%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m5%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m6%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m7%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m8%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m9%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m10%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m11%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m12%>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
            <asp:Repeater ID="rep_Capacity" runat="server" DataSourceID="CapacityDataSource">
                <HeaderTemplate>
                    <table>
                        <caption style="text-align: left">
                            表4：各BU生产能力情况（Each BU Production capacity）</caption>
                        <tr>
                            <th scope="col">
                                BU
                            </th>
                            <th scope="col">
                                1
                            </th>
                            <th scope="col">
                                2
                            </th>
                            <th scope="col">
                                3
                            </th>
                            <th scope="col">
                                4
                            </th>
                            <th scope="col">
                                5
                            </th>
                            <th scope="col">
                                6
                            </th>
                            <th scope="col">
                                7
                            </th>
                            <th scope="col">
                                8
                            </th>
                            <th scope="col">
                                9
                            </th>
                            <th scope="col">
                                10
                            </th>
                            <th scope="col">
                                11
                            </th>
                            <th scope="col">
                                12
                            </th>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).BU%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m1%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m2%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m3%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m4%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m5%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m6%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m7%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m8%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m9%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m10%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m11%>
                        </td>
                        <td class="row">
                            &nbsp;<%# ((SMTC.Model.Domain.ImportPlanDomain)Container.DataItem).m12%>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
            
            <asp:ObjectDataSource ID="PlanDataSource" runat="server" TypeName="ReportDataSource"
                SelectMethod="GetReportPlan">
                <SelectParameters>
                    <asp:ControlParameter ControlID="TabTitle$dll_PlanVersion" Name="PlanVersion" PropertyName="Text"
                        Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>

            <asp:ObjectDataSource ID="PlanDataSource_T" runat="server" TypeName="ReportDataSource"
                SelectMethod="GetReportPlan_T">
                <SelectParameters>
                    <asp:ControlParameter ControlID="TabTitle$dll_PlanVersion" Name="PlanVersion" PropertyName="Text"
                        Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>

            <asp:ObjectDataSource ID="CapacityDataSource" runat="server" TypeName="ReportDataSource"
                SelectMethod="GetReportCapacity">
                <SelectParameters>
                    <asp:Parameter Name="start" Type="DateTime" />
                    <asp:Parameter Name="end" Type="DateTime" />
                    <asp:ControlParameter ControlID="TabTitle$dll_PUVersion" Name="PUVersion" PropertyName="Text"
                        Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>
        </div>
    </div>
</asp:Content>
